Detect if Menu Bar Menu-item is active

BTT has get_menu_item_details which can also be used from java script.

Some discussion here: