optimizing requirejs dependencies