get baseURL to JS