Cross browser solution to add content to an element