Convert a HAR (HTTP Archive) object to a cURL command using JavaScript.