added fix for no console in IE javascript