Making document new work by appending info to formdata