Improving loading time in react.js