added phonegap.js and showAlert