Removed calls to console.log

As pointed out by Tobias Gurock, calls to console.log could result in
JavaScript errors with some IE versions.

http://forum.gurock.com/post/6063/#p6063
Fix a typo in a comment