split Bar class

split the logic and rendering of the HP bar from Avator.js to an indie
Bar.js