Magic: The Gather life counter in jQuery