just a simple example of how to build a module loader by wrapping require