optimize requirejs task