load function to load up a script file