Modified console.log to window.console.log to allow js to be included in ie8.