Fixed bug where the click event would get binded twice to submenu containing elements when they consist of nested anchor and span tags. Removed some old not needed code.