console.log is undefined in IE until you open debugging window. To have the site work without dev tools open we overwrite console if it doesn't exist.