implement browser tests

this is useful for debugging with browser-based debugging tools