title: Uncaught SyntaxError: Unexpected identifier within ajax handler
body: <p>I'm getting mentioned error with code like:</p>
  
  <pre><code>var request = {
      action: "coupg_subscribe_affiliate", 
      email: $('#affiliate_signup_email').val()
  }
  $.ajax({
      type: "post", 
      dataType: "json", 
      url: coupg_ajax_object.ajax_url, 
      data: request, 
      success: function (e) {
          if (e.status == 1) {
              window.location = e.link;
          }
          else if (e.status == -1) {
              alert('Unknown error has occured. Please notify administrator as soon as possible.\nError code: ' + e.error);
          }
      }
  })
  </code></pre>
  
  <p>I have exactly same code for AJAX somewhere else and it works. Here, it gives me mentioned error. Any ideas what is causing this?</p>