Javascript Replace Element In Array Javascript Documentation W3schools