Move index.js to parent level and change references