Javascript console debugging - don't use just console.log(); - it fails on IE
Make sure, console is defined