window.console implementation if not present