plugging in phonegap js