Set the button type to button
On a couple of browser the default type of a button is 'submit', not
setting the type explicitly in the script will cause the navigation
buttons to submit the form it's in.