mod_base: better javascript error reporting in the console.
mod_base: fix formatting (tabs vs space).