It pains me to see more things being added to base.js. I would feel slightly better if you do not add new global variables (these functions). They could be declared inside of saveNewCourse