added back in phonegap.js, removed deviceready block