words now persisting, but getting a 500 error when making ajax post request