spring cleaning, improve understanding of angularjs