Register script functions globaly instead of per script object. Easier to use, and allows for more dynamics scripts later on.