Fleshed out index.js