attempt at angular.js