issue #1: move index.js files to top: first pass