made a functional angular script

This basic script will allow me to add multiple fields for the names