Array Find And Replace Javascript String Compare