console is not defined in ie, so removed it.