further angular.js implementation