Fixed console output so it works in IE.