Prevent double-initialization of codemirror <pre> elements
Added mask for datepicker