Replace Array Value Javascript Editor Atom