Update index.js

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