MacOS Native API calls in Electron