title: Uncaught SyntaxError: Unexpected end of input
body: <p>I have this code but when there's a problem and the console log this error</p>
  
  <blockquote>
    <p>Uncaught SyntaxError: Unexpected end of input</p>
  </blockquote>
  
  <pre><code>$(function () {
         var clicks = 0;
        setLike('&lt;?php echo $notrepage ?&gt;');
        FB.Event.subscribe('edge.create', function (response) {
           if (getcookie('&lt;? url_to_cookie($fbpage) ?&gt;')) {
              setLike('&lt;?php echo $autrepage;?&gt;');
              var clicks = 1,
              cooo = &lt;? url_to_cookie($autrepage) ?&gt; ;
           } else if (clicks == 1) {
              setcookie(cooo, '1', 350);
              $("#inner-follow").remove();
              $("#likeplay").remove();
              document.getElementById("dsfsd").style.display = 'none';
              document.getElementById("dsfsd").style.visibility = 'hidden';
              document.getElementById("videos").style.display = 'block';
              document.getElementById("videos").style.visibility = 'visible';
              getViedo();
           } else if (clicks = 0) {
              setLike('&lt;?php echo $fbpage; ?&gt;');
             var  clicks = 1,
              cooo = &lt;? url_to_cookie($fbpage); ?&gt; ;
           }
  
        });
  </code></pre>
  
  <p>Thank you :)</p>