Actually build agentscript.js