use modules in js using browserify

This PR comes after #19.