samples and tweaks with angularJS