fixed bug in ie alert "console is undefined"