use FormData whenever available

This is an improvement because now forms with
enctype="multipart/form-data" will non break completely
on non-supporting browsers