Set up a single window.Discourse.rootURL instance, created as .js.erb that is referenced by other instances of rootURL