Support browsers without `console.log`
Added IE compatibility