Update middleware.coffee

fixes coffeescript lint warnings