Converting back to using browserify-middleware