"not being able to type code" is an Electron bug related to plugin using alert() instead of much longer-winded electron->Dialog->showMessageBox. It resolves by clicking away from the window and then back, but I should probably replace window.alert with that.
Dumping scripts into root folder seemed undesirable, but maybe less undesirable than not making scripts at all? Who knows