nunaliit2-js: Trim layer identifier when document lists are generated.

Issue #284