Imitation implementation of (a subset of) AngularJS, based on the Build Your Own AngularJS book