Refactored and cleaned up HTML, CSS and JS