remove window.console when browser not supported