title: javascript/jquery function is called on page load instead of onclick
body: <p>I have a function which sends data to a server using ajax:</p>
  
  <pre><code>  function firstScanStatIncrement(a) {
      $.ajax({
        url: "/my_url",
        type: "get",
        data: {
          attr: a,
          report_action: "report_action"
        }
      });
    }
  </code></pre>
  
  <p>and I want to call the function when specific button is clicked. I do it like this:</p>
  
  <pre><code>$("#to-my-account").on("click", firstScanStatIncrement("account_page"));
  </code></pre>
  
  <p>but the function is called right after my page has been loaded. What do I do wrong?</p>