debugging courses.js