title: accessing a method in .jar file from javascript
body: <p>I need to access a method in an api say xyz-api.jar located in a server. inside my javascript function, how should i proceed?</p>
  
  <p>We cannot use servlets here as there is no access to the server. 
  Thanks in advance!</p>