move changes from page.js to index.js, rebuild

re #132. I screwed up! :D @conraddecker, I move your PR from `page.js` to `index.js`. Also I rebuilded `page.js`. Please check your changes.