shorter index.js