Add a duetto intrinsic to create closures
DuettoBackend: Support duetto.create.closure intrinsic in the JS backend