Remove unused require and clean up code from browserify