Fixing a bug where I malformed index.js