JS backend: address comments