Unfortunately, Google does not see fit to allow this. It causes a ton of duplication between scripts, tons of "wrapper functions" and generally leads to a lot of needless spaghetti code.
They really need to fix calling functions from a library with the UI.