title: JavaScript works in debug mode but not working normal mode
body: <pre><code>$(document).ready(function() {
      urlHolder.checkUser = '${checkUser}';
      $('#checkUserForm').submit(function() {
          checkUser();
      });
  });
  
  var urlHolder = new Object();
  function checkUser() {
          $.post(urlHolder.checkUser, {
              email : $('#email').val(),
              password : $('#password').val(),
          }, function(response) {
              if (response != null) {
                  alert('Success! User has been added.');
              } else {
                  alert('Failure! An error has occurred!');
              }
          });
      };
  </code></pre>
  
  <p>I'm using this code for checking user exist or not. When I used firefox debugger (breakpoint on alert() line ), it worked and server came back a response, but if I didn't put any breakpoint, alert doesn't work, but server came back a response. Note: not only alert() but also window.location.href = "<a href="http://stackoverflow.com">http://stackoverflow.com</a>"; didn't work. </p>