Fix js issue when opening a nursery

Reviewer: Tiff Go (post commit)

Issue: none