correct index.js: delete unused "next"