nunaliit2-js: Allow generic canvas to be defined in module document.

Issue #266