performance: move helpers into WalkontableDOM