added phonegap stuff