Fix console issues with IE8. ref #114