There should be a piece of text in the header row that is clickable which should either mark them all as checked or unchecked when it is clicked.
Reference jQuery using your preferred method:
Add the script after:
In the header template add the text:
<label onclick="CheckAllBoxes()">Check All</label>