Reindent index.html and delete trailing whitespace

M-x delete-trailing-whitespace
C-x h untabify
C-x h indent-region