incomplete; working with document. commangs in javascript