Add death info to chapters JSON returned by API.
Refactoring.
Fix incorrect chapter numbers.
Add death stats to chapter pages.

Refactor common code to util.js.