phonegap.js and insomnia