Transfers much of BuildJavaScriptMojo logic to the common TeaVMTool.