rewrite vm implementation to increase compat. vm.Module+importModuleDynamically callbacks should be added in a followup.