fixes the case if the console object does not exist (IIRC MSIE does this)
Merge branch 'master' of https://github.com/CrystalGamma/madlib