Phonegap js