Dropped some erroneous semicolons and trailing spaces. Also dropped the console call which was making IE9 shit itself.