changes to support html5 posting FormData