cleaned up phonegap