AngularJS version of 2048