console might not be defined (old ie versions)

use `window.console` instead of `console`
Merge pull request #192 from QuentinFchx/patch-2

console might not be defined (old ie versions)