Script don't work unless the file has been saved.
All the plugins that use the common.js library seem to not work unless you save the file first. 

The reported error in the console is `Sketch[55304:707] JSException: TypeError: 'null' is not an object (evaluating 'file_url. path') on line 9 of (null)`
