Tryin to add content to a javascript doc object