Added: solution for appointment.js