cargo cult fix bug in curl.js