Javascript battle hero