base: requirejs improvements

do we need the inner function?