Updated to angular.js closes #4