Hp bars

450 lines are text.js and rect.js, and the rest is mostly not new code.