Replaced use of Curl with a Node.js script to remove dependency