working on the javascript for data display