Switch to browserify-middleware