block 'dialog-window' js fix: fix call of 'generateId' function