chore(scriptfactory): use string instead of reader for script source