update to phonegap 2.9 and made js calls local