[vhost][fix] use master_host also for js libraries