Update index.js

commented the file, hopefully anyone can understand what goes on now.