Update course.js

added fix to delete unit