I am kind of new to javascript so could do with some advice. I have the below code to run once a html form is submitted with data. The correct data is being added to the existin