adapting tests to work in browser and including 'run tape' script