Fallback to global console

This way, if one has imported Handlebars and jQuery, but not console, debugging will still work.
Merge pull request #3109 from aaronshaf/patch-1

Fallback to global console