Working through building your own angularJS