add some debugging output to js tests

- display errors in evaluate / browser code
- capture and display console.log if a test fails (like nose)

An interrupt test that did nothing is fixed, based on information revealed by this PR.
it was doing double-duty clearing and iterating, but I also clear explicitly at the end, so there's no point. Just using a for-loop now.