fix broken handling of IE's lack of console.log