Use JavaScript handle ajax upload file