minor improvements to AngularJS examples