Change Css Property Javascript Array Find Duplicates On Mac