title: Javascript cookie without a leading dot
body: <p>I want to clear a cookie using javascript that was originally created server-side. Whenever I create a cookie using javascript I get a leading dot on my domain so I cannot overwrite the server's cookie.</p>
  
  <pre><code>function clearCookie(name, domain, path){
      var domain = domain || document.domain;
      var path = path || "/";
      document.cookie = name + "=; expires=" + +new Date + "; domain=" + domain + "; path=" + path;
  };
  
  clearCookie('cookieTime');
  </code></pre>
  
  <p>This is the result of my cookie:</p>
  
  <pre><code>name: cookieTime
  domain: .www.currentdomain.com
  path: /
  </code></pre>
  
  <p>This is the cookie from the server:</p>
  
  <pre><code>name: cookieTime
  domain: www.currentdomain.com
  path: /
  </code></pre>
  
  <p>How do I create a js cookie without a leading dot?</p>