re-wrote our files into node-style modules so that we can combine everything with browserify