preload modules only, not scripts

script cannot contain any require call or they may not use preloaded
modules. If a script contains require call it should be a module.