[javascript] how to get the host url using javascript from the current page