title: combining multiple javascript var into one function
body: <p>I know absolutely nothing about js but I stumbled on this and was wondering if someone could help me combine these two into one. I will probably end up having about 30 of them. is it possible for all 30 vars to be combined? each customPush will push a new html.</p>
  
  <p>Thank you.</p>
  
  <pre><code>var customPush1 = function (event) {
  myNavigator.pushPage('pageNav2.html', { data: { cardTitle: 
  event.target.textContent } })
  };
  var customPush2 = function (event) {
  myNavigator.pushPage('pageNav3.html', { data: { cardTitle: event.target.textContent } })
  };
  </code></pre>