Revert to old

Still was not working, I think were going to have to post the data to
generateSchedule.php or convert the algorithm to php