Add "type" attribute to button element

Fixes automatic form submission, see SO:
http://stackoverflow.com/questions/932653/how-to-prevent-buttons-from-submitting-forms