Attempt to build toir UI with angular.js