Started rewrite to AngularJS. Prep for the amazing AG's magic..