Warming up on Angular JS - Technical Test Rewrite