update index phonegap