switch to browserify, export src code