Refactored front-end JS for more frequent GET requests, added support for viewing patients' details once clicked.