use libcurl to download JS in forked ACs
expose Agent.stop() to JS to complete execution
Merge pull request #1001 from birarda/forked-js-ac

use libcurl to download JS in forked ACs