update index for phonegap.