title: JavaScript: How do I create JSONP?
body: <p>I have a two domains, example1.com and example2.com</p>
  
  <p>From example1.com, I would like call a JSON API I have on example2.com. Knowing that this is not allowed, it occurred to me - this is exactly why JSON<strong>P</strong> was created.</p>
  
  <p>Question is, how do I modify my JSON API to make it JSONP capable?</p>
  
  <p>Basically, how do I create the callback api?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>My server side language is PHP</p>