js: add duktape, support both mujs and duktape.

This PR is only to allow inline comments on the overall duktape support commits.
As far as I can tell, no equivalent duktape API. However, I might be able to avoid some of the enumeration altogether, which should also make it faster, but I wanted to keep this PR strictly for adding duktape support. Other general refactoring can happen later.