Added resetWaivedStatus function to courses.js