Hey there,
The JavaScript API isn't ready yet; there are a few more essential
features left to implement and test. When it's ready, it'll be
announced in the Hemlock blog, and released in the GitHub repository.
The goal is that you'll no longer have to write any ActionScript.
You'll just write JavaScript, and it'll run some ActionScript hooks
behind the scenes.
Cheers,
Ron