added phonegap javascript