Javascript curl equivalent. .