When clicking on reset, the browser goes and check the default value in the DOM tree, not in the HTML page.
Your Javascript modifies the DOM. You should try to replace your RESET button with a custom button that calls a Javascript that does two things:
- reset normally.
- set the hidden field to
5.