Resolve a baseUrl value when none is provided for when generating the javascript URL.