getSchedule function performs a XMLHttpRequest for the schedule and displays it