title: Codekit Uglify.js 'Unexpected token punc' error
body: <p><strong>I'm not sure where my syntax / unexpected token error is</strong></p>
  
  <p>My full jQuery function on jsfiddle:
  <a href="http://jsfiddle.net/leongaban/gmRUa/" rel="nofollow noreferrer">http://jsfiddle.net/leongaban/gmRUa/</a>
  <br/><br/><br/>
  The error I'm getting:</p>
  
  <pre><code>The following error information applies to that file: 
  
   'Unexpected token punc, expected punc',
    line: 160,
    col: 29,
    pos: 5212,
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/k6URJ.png" alt="enter image description here"></p>
  
  <p>Which corresponds to line 30 of <a href="http://jsfiddle.net/leongaban/gmRUa/1/" rel="nofollow noreferrer">my jsfiddle</a> the line with the <code>} catch {</code></p>
  
  <p><strong>Do you notice what is causing the error there?</strong></p>
  
  <p><br/><br/>
  The function:</p>
  
  <pre><code>//REGISTER
  var wireRegisterForm = function (form) {
  
  console.log('inside wireRegisterForm');
  var $form = $(form);
  
  //form being submitted
  $form.find('button').unbind('click').bind('click', function () {
      if (WORLD.validation.validateRegisterForm($form)) {
  
          var params = {
              "email":$form.find('#register-email').val(),
              "firstName":$form.find('#register-firstname').val(),
              "lastName":$form.find('#register-lastname').val(),
              "password":$form.find('#register-password').val()
          };
  
          //fill params with parameters from form
          WORLD.networking.postToServerWithAjax('/login', params, function (response) {
  
              //check successful or not from response object
              try {
                  var isSuccessful = response.wassuccessful;
                  if (isSuccessful === true) {
                      loginSuccess();
                  } else {
                      // login failed
                  }
              } catch {
                  // login failed
              }
  
          });
  
          }
  
          //stop the form submit
          return false;
      });
  
      //enter clicked from password box
      $form.find("input[name='password']").unbind('keyup').bind('keyup', function (event) {
          if (event.keyCode === 13) {
              this.find("button").click();
          }
      });
  };
  </code></pre>