dom and accessing and modifying elements with javascript