Added console hack for IE and debugging management