window.console missing in old browsers