Report JavaScript errors to the console

Error message for blank test results string (instead of decode error)

Browser now checks for and reports JS errors

Test runner now reports JS errors that occur
when running the test suite.