Add browserify
Add mocha for testing
Separate js into separate files