removed reference to deprecated DOM methods