More cleanup before publishing to PhoneGap.