simplify root index.js