at least there is no compile errors
updated js to new cordova method