Moved cancel-waiver method into javascript for consistency with the priority-adjustment buttons