refactored courses_new.js and fixed appropriate tests. also fixed some style issues in courses_new.js
refactored courses_overview and fixed appropriate tests