Simple polyfill to handle html5 form submission attributes in legacy browsers