Debugging index.js