Adding phonegap JS