add comment on index.js behavior