#699 - Attempt to fix JSCompatibility problems for Tomcat 6