requirejs improvements