for ie8: undefine console error