Handle browsers that don't support the form attribute on button