finish writing index.js