How To Replace Array Value In Javascript