nunaliit2-js: Refresh when references are changed.

Issue #270