fixing broken reference to loadscript