switch file over to index.js