check that console.log exists so things work on IE