Removed console.dir that was breaking PhoneGap app