update JS backend to TTIImpl now receiving a const Function
2 files changed