javascript/viewAppointments.js - Remove dead code
javascript/viewAppointments.js - Fix

Fixed a bug which could cause appointment details not to display.

This was caused by the appointments object not being correctly saved in localStorage.