js: add duktape, support both mujs and duktape.

Why is the additional define needed? It seems redundant to HAVE_DUKTAPE.

Also, you don't need to add ( ) to the #if.