Ensure WS is ready before sending curSlide
Use relative URLs to support reverse proxies