changing index from phonegap to cordova