generate hostname in controllers; IE8 innerHTML