try testling with browserify
move test source into test/src
rebuild test and build scripts around broweserify