COMMONS-309 get selected file name correctly in commons-Document.js