Added window.location.pathname to SOCKJS_URL