fix for IE console not defined bug