Cordova sends events to JS based on Chromecast