Re-add removed code from characters.js.