linked index to phonegap 1.0 js