Update index.js

TODO Improve rendering speed by using reactjs and track by