Form manipulation for AngularJs