Finally got the DOM manipulation code to work. Baby steps...