Update schedule.php

Moved script stuff to schedule.js