title: Website/Files organisation for Ajax calls
body: <p>I am just getting started with Ajax, and I wonder how to organize my ajax scripts and php files (which process the ajax function).<br>
  With Php it was easy, one functions library functions.php with all my classes and methods that I can call whenever I need them.  </p>
  
  <p>My first reflex with Ajax was trying to call an already existing method inside a php class in order to process a contact form but I do believe this is impossible and I need a separate file to do this ?  </p>
  
  <p>My question is, do I need to create a different file.js for each ajax script and a file.php for each ajax call ?  It can get very messy with a few ajax functions  compared to php.  </p>
  
  <p>Is there a right way to organize this ?</p>