Updated to Cordova framework