make it a node package and use browserify