Set javascript cookie in Magento 1.8
<p>I'm on a project made by others web developers, in magento.</p>

<p>I've found this ajax call:</p>

<pre><code>$j.ajax({
        type: "POST",
        url: "/ws/newsletter/register",
        data: "email=" + d,
        dataType: "json",
        success: function (e) {
            if (e.status != "1") {
                showFormError(a, c, e.msg)
            } else {
                $j('#newsletter-validate-detail button[type="submit"].bot').after('&lt;div class="newsletter-info"&gt;' + e.msg + "&lt;/div&gt;");
                $j("#" + c).val("");
                $j("#advice-ajax-request-newsletter-validate-detail-input").remove()
            }
            $j('#newsletter-validate-detail button[type="submit"].bot').removeClass("btnLoading")
        },
        error: function (g, f, e) {
            showFormError(a, c, unavailableMsg)
        },
        failure: function (e) {
            showFormError(a, c, unavailableMsg)
        }
    })
</code></pre>

<p>Where are the location of this?
/ws/newsletter/register</p>

<p>There are no WS folder.</p>