Include moment in the scope and copy body from courses.js
Update example
Split all major methods into separate files