Find Duplicate Elements In Array Using Javascript Responsive Menu