JS work with contextmenu