Replace Array Element With Another Javascript Editor In Browser