Moved scripts to external file