DnD 3.5 character manager in Javascript