issue #8 - log errors to console, and in the browser log the offending file