Electron apps may feature inline scripts in the views, with DOM handlers and ipcRenderer senders. However, this should be done in the app space, not html space.
Create a folder callled view-scripts. Each javascript file in here will be automatically merged into the view of the same name.