handle console not being available on IE 9. console.debug() is deprecated and throws warnings on some browsers