Added argument to debugRows() so it can return HTML instead of echo'ing