updated to basic phonegap