supports rails' relative_url when building baseUrl for requirejs