Moved agentscript.coffee to lib, for inclusion in map, without cluttering up src