template and javasrcipt registry adjustment