Create appointments.js