Fix index.js require and deps