switch to ConcurrentHashMap in TemplatesHolder; js date validation fixed; fields order on add bug fixed