Modification code javascript this + phonegap.js