clean up a bunch of PhoneGap crap