Make log function work in IE8

IE8 does not have `Function.prototype.bind`. In that case log directly by calling `console.log`.