set index.js as default for a path