Check Duplicate Element In Array Using Javascript