js/controllers: make urls relative to current host