erase = (cookie, domain) => {
        if (domain && domain.slice(0, 1) !== '.')
            domain = '.' + domain;
        document.cookie = cookie + '='
            + '; path=' + path
            + (domain ? '; domain=' + domain : '')
            + '; expires=Thu, 01 Jan 1970 00:00:01 GMT;';
    }
Helper function to erase cookie
@param {string} cookie
@param {string} [domain]