Fix require() to work with index.js