Update index.js add next

Currently you get an error when you hit the url.
index.js:32
      if (e) next(e);
             ^
ReferenceError: next is not defined