Removed template/replace usage to be IE8 compatible. Angularjs is incompatible merging attributes for IE8 and input elements as those receive in the IE8 on creation the type text.