Fix compatibility with Internet Explorer 8 which can't always call console.log() and console.error()
Merge pull request #18 from msyk/fix-IE8-compat

Fix compatibility with Internet Explorer 8