first implementation of Angular.js