JavaScript UI and DOM homework