Replace All Element In Array Javascript