Cleaned up the JSP to move more of the "Java" to the top of the file.