nunaliit2-js: Fix javascript error with browse application.