Updated cordova ondevice ready