title: Unexpected token else : rewrite
body: <p>I'm receiving an "<strong>Uncaught SyntaxError: Unexpected token else</strong>" ... i know what the error means but I'm unsure how to fix it to work with the statement. I tried removing the <code>else</code> statement and running the <code>If</code> statement by itself but no luck. Any suggestions?</p>
  
  <pre><code>jQuery('.navigation_secondary-item').click(function (e) {
      if (jQuery('.box-search').hasClass('active')) {
          jQuery('.box-search').siblings().removeClass('active');
          jQuery('.box-search').removeClass('active');
      } else {
          jQuery('.box-search').siblings().removeClass('active');
          jQuery('.box-search').toggleClass('active');
      } else {
          // error here
          if (jQuery('.box-social').hasClass('active')) {
              jQuery('.box-social').siblings().removeClass('active');
              jQuery('.box-social').removeClass('active');
          } else {
              jQuery('.box-social').siblings().removeClass('active');
              jQuery('.box-social').toggleClass('active');
          }
      }
  });
  </code></pre>