.......... [ZBXNEXT-282] minor JS code refactoring
.......... [ZBXNEXT-282] removed unnecessary comments