send ajax request

use XMLHttpRequest and FormData