Try using cordova.js