cleaning up js for yourCourses