Use relative_url_root in preinit.js.erb. Workaround from issue #106.