Removed console.log messages to make IE9 work