title: Redirect if cookie exists jquery/html
body: <p>Trying to make a window.onload "if logged in redirect to /premium" script.</p>
  
  <pre><code>&lt;script&gt;
  $( window ).on( "load", function() {
    if (!!$.cookie(Sentry_firstName)) {
      $(location).attr('/premium',url);
    }
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>This does not work when pasted into .HTML
  any ideas? Dont need backend. can have it all in HTML.
  And have i read the cookie key right? Cookie source 
   <a href="https://www.sentrylogin.com/sentry/scripts/Sentry_AJAX_Style2014.js" rel="nofollow noreferrer">HERE</a></p>