Comment out throw statements that crash cordova on win8