templates IE redone, to avoid bug with "a=!!val!!" situation, isMSIE flag added