JavaScript Updates (AJAX PUT)

I'm trying to implement the PUT action to update a filled form. The
method is there but it's not working.