title: JS Cookie path not setting
body: <p>I am using the following Javascript API for setting a cookie:</p>
  
  <p><a href="https://github.com/js-cookie/js-cookie" rel="nofollow">https://github.com/js-cookie/js-cookie</a></p>
  
  <p>I am trying to set the path to the current page, but it is setting to the root. My code to set the cookie is:</p>
  
  <pre><code>Cookies.set('timeElapsed', data.seconds, {path: ''});
  </code></pre>
  
  <p>Which is part of a wider function which is tracking the progress of a Vimeo video, so I can use the cookie to resume from the last play point when the page is returned to.</p>
  
  <p>But the cookie that is being set has the path <code>/</code>, meaning I can't use the same code for other videos on the site.</p>
  
  <p>How can I set the cookie for just the current page?</p>