updated js to render the new data