Wrap call to console.log, to avoid errors in browsers without a console object.
Merge pull request #141 from bcipolli/console_error

Wrap call to console.log, to avoid errors in browsers without a console object.