title: Creating NPAPI plugin in Delphi and accessing exported APIs  using javascript
body: <p>I have found a useful billards physics library in Borland delphi for my hobby project. The code is object oriented(in Object pascal). I want to visualize it using webGL (javascript) in chrome browser.</p>
  
  <p>The idea is, I should have one call to make from the javascript which will access the interface from delphi lib and give me the new position, rotation and scale values in respective array.</p>
  
  <p>For this I want to develop an NPAPI lib Scriptable plugin in Delphi(Meaning NO UI only lib of APIs).</p>
  
  <p>1)I want to export those necessary physics APIs from the Delphi via this NPAPI plugin and access them in my html page using JavaScript. I am targeting chrome. 
  2) Any simple "hello world" tutorial or article related to this will be highly helpful.</p>
  
  <p>3)Any help on  using Firebreath to achieve the same is most preferable.
  How to use Delphi with Firebreath?</p>