Add IE8 compatibility for maintaining name attribute during input type conversion

See #20 for full details.