modified init to run deviceready cordova style