Hi,
there will be a javascript API. but this is still in development.
actually, multiple things had to be combined, so also the API needed to be expanded to support more than just the WebViewer.
sorry, but I cannot share more.. it takes more time.
Matt