added index.js comments