Fix IE8 compatibility for maintaining name attribute during input type conversion

See #20 for details.