Update course.js

fix for refresh