Javascript extension for ScriptBuilder