Pass variables and functions between web app code and main Electron process Desktop