Update code phonegap app