second commit of appointment.js