Use some concepts of the angularjs framework

Hey Matt,

I've made some changes to use more of the angular concepts.
So you have a even smaller example.

Rob