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 rebuild `page.js`. Please check your changes.