JS: fixed context menu items onclick