Fixes error with ie 9

The old line console.log produces error in ie because "console" is only
active if you opened developer tools with 'f12'