add JS code to make life dead or live manually