fix console.warn error in IE9
Merge pull request #111 from matthieua/console-ie9-fix

console.warn() cause js error on IE9