Reverted some phonegap specific code.