[temp]
JS backend: fix recursive closure function