Learning AngularJS to MVC-ize client-side code