Moved Javascript out of JSP into external file.