Added shim to stop iexplorer exploding when it sees there is a console.debug in the code.