edit host in js