It actually works now

Modules are now loaded into the correct namespace and can access the
script namespace.
Require the required modules.