Bug fix for Mobile Safari

Mobile Safari does not allow setting the type-property of a button.