Javascript added for dynamic menu.