Update appointments.js