now only using javascript to display data, no fetching and processing