Hanabi in Angularjs