The DOM (Document Object Model) has an API.
element = Document.getElementById('survey_form')
string document URL
(returns the URL of the document object!)
DOM elements that are exposed and which you can modify include: