lots of js changes to make the form work + shared course.js namespace