Converted to jQuery ajax calls for editNut and addNut, sending data to server as object not string, correcting the errors that occurred before with entry of ampersand into form fields