They're in the process of rewriting the DOM handler to support dynamic changes from JavaScript. JavaScript itself runs well.
Yet. The Git version seems to already have preliminary JavaScript integration, based on Duktape. There was also an earlier attempt in 2012-13, utilizing SpiderMonkey.