A better index.js