Get WS-url via Javascript routing