modify structure angularjs