minor changes to functions.js, course.discussions.js