remove unneeded dep
tests: use new on constructor
make this work in the browser!