adding ScriptCollectorMethods.js