Inserted a method to add javascript to the HTML in the Servlet.