base: requirejs improvements