Fetching the records from the JS now, to be able to filter them based on user selection.