Changing to initialize with Cordova