OK, so in 1.0 you can basically write a flat .js file that contains any functions/variables you want to access. When you set this .js as a Library on your Script record, you will then have access to any variables or functions defined in it. So an example might look like