How Do I Hide An Element After Adding It Through Javascript Stack

How Do I Hide An Element After Adding It Through Javascript Stack