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
Merge pull request #1 from PhilCorcoran/patch-1

Update index.js add next