JS for Scheduling Grid