Replace Array Element With Another Javascript Snake