CLDINT-910 fix of javascript for corrent work of context menu