dom, accessing and modifying elements and attributes