Cleaned up HTML and JS for frontend.