Remove empty paragrahps after assigning source to innerHTML property.