Improved loading dependencies with requirejs