performance: missing .innerHTML = ''; + faster empty function