Update index.js

call next instead of just 500'ing