Slim down HTML and format JS better