Cookie is not defined error
<p>I'm getting 'Cookie is not defined' error from this code. What went wrong with this code? Please help to fix it.</p>

<pre><code>$('#save-dashboard').on('click', function (e) {
        var filtersNew = $("#graph-filters").val();
        if (!filtersNew) {
            alert('No Filters!');
        }
        if (cookie.enabled())
        {
            cookie.defaults.path = '/';
            var cookieFilters = cookie.get('cookie-filter-list');
            if (cookieFilters) {
                cookieFilters = cookieFilters + '#' + filtersNew;
                cookie.defaults.expires = 30;
                cookie.set('cookie-filter-list', cookieFilters);
                cookie.defaults.path = '/';
            }
        } else {
            cookie.defaults.expires = 30;
            cookie.set('filter-list', cookieFilters);
            cookie.defaults.path = '/';
        }
    });
</code></pre>

<p>I have set <code>app.use(express.cookieParser())</code></p>