Modularized to the browserify form; added gulp for building