completed index.js