Javascript Array Find And Replace Shortcut