Pager: correctly detach and append jQuery rows. Fixes #650