adding phonegap js