mode_test.js: refactor to use array of objects.
mode tests: optionally show mode state after every token.

Doesn't show states (but shouldn't crash) on old browsers.
[test runner] Top-align mode test states