Add angular.js and change code to use it.