Added `type` attribute to all the `<button>` elements

It turns out you need `type=button` attributes for all the `<button>` elements. W3C logic.