Update form serialize (without jQuery, plain Javascript).js