Fix button form submission

If type is not set, buttons inside forms act as a trigger to submit the form. See http://stackoverflow.com/questions/932653/how-to-prevent-buttons-from-submitting-forms.
Merge pull request #34 from ssured/patch-2

Fix button form submission