Javascript minimizeHealth functions sync with current damage states