Update host.js

Make rootUrl configurable