BeerCoder rewritten with AngularJS