phonegap js in index file