improved requirejs main module