index.js as at the beginning