add console handling to IE