index for phonegap