move global event listeners to event.js, listen cordova events once
deviceready event fires