Javascript Modify Form Data Before Submit