Change Testsuite to Tape, fix some browser-side bugs

Fixes #22