getting current host from js