Don't use type attribute which breaks IE 11

Closes #1