added a bunch of angular.js stuff