Using ajax request to update heartbeat information in UI