Reorganizing javascript/html code for project. Also adjusting stylesheet to use classes instead of single element IDs