If you're using JavaScript, why not just make a game playable in browsers? itch.io has that option, you can just play the game directly from the webpage; it's what I've done with all the games I've made for various game jams.
(That said, I'm not that familiar with Electron, so I don't know if it has some significant advantage over web browsers.)