Cache jQuery objects after building html.