why not set innerHTML to '' ?