Cleanup of courses.js