or is there a missing `var insert = append...` in the line above?