moved phonegap reference to index