anchor.diff:  
   %>
       Imcms = {
  +        flags: ${isEditMode ? editModeFlags : 0},
           contextPath: "${pageContext.request.contextPath}",
           version: "${version}",
           isEditMode: ${isEditMode},
  
positive.code:     <%@ page import="com.imcode.imcms.servlet.Version" %>
      <%@ page import="imcode.server.Imcms "%>
      <%@ page import="imcode.server.document.DocumentDomainObject" %>
      <%@ page contentType="text/javascript" pageEncoding="UTF-8"	%>
      <%
  
  
negative.code: 	final String imcmsVersion = Version.getImcmsVersion(getServletConfig().getServletContext());
  
  	pageContext.setAttribute("version", imcmsVersion);
      pageContext.setAttribute("editModeFlags", ImcmsConstants.PERM_EDIT_DOCUMENT);
      pageContext.setAttribute("isEditMode", isEditMode);
      pageContext.setAttribute("isVersioningAllowed", Imcms.isVersioningAllowed());
      pageContext.setAttribute("language", language);
  