chargen.html updated with battle test section. chargen.js updated with code to make it work.