small forEach and indexOf replacements
clean up replacements
indexOf and forEach replacements for tests
forEach and indexOf replacements for common.js
add browser-specific test replacements
update build script to generate browser tests
add generated browser tests
Skip tests that don't make sense in browser
browser tests: more robustness

For more robustness
add `npm run test-browser`
add testling support