add closeAll api call to myContextMenu.
fix syntax errors in contextmenu.js