nunaliit2-js: Fix editor failure.

Issue #253