I have a JavaScript library which generate html depending on parameters passed to the library. e.g. The library has a method which accepts id of an html button and the method then wraps html button with html div (and some inline css) to make it look good. The method returns html string representation of the button.
Is it possible to use this JS library with Rhino and call the method by passing some id (which should actually be an id of a button in html page) and get html string representation of the button?
Thanks in advance