Added ability to set the input elements type

I needed this on my project so I could specify different HTML5 input element types.