JavaScript: remove Menuentry by Index (Cable)