JS backend: use backing fields in component functions