First pass at DOM manipulation functions.