JavaScript/AngularJS adventures of a Java guy Part 1