Why not make local variables for each element, and then re-use those instead of querying the DOM multiple times?