Changed innerHTML to append()