Tidy up the index.jsp code.