Change scal init and add phonegap.js