Learning how to use angularJS