this script probably shouldn't mess with whatever the user chooses to do with window.console so it is overridden locally instead (see http://stackoverflow.com/a/11102122 for original code)