added some of the JavaScript UI and DOM