first simple edition of index.js