Manipulating the DOM and BOM with JavaScript