Close #49

I've defined the variable with `getGlobals` as it was in 1.0.

I'm a little confused as to why `require_js_src` is defined as a Twig function rather than a variable though, given it doesn't accept arguments.
Would you prefer a `require_js_config` function to be created to hold the configuration instead to be consistent?