Dynamic Table written in AngularJS