pull out index.js
added explanatory text