express middleware for browserify, done right