I think the reset button will only work to clear a field that the user has typed into, rather than one filled by js.
But, surely your solution is to create a second js function, looking pretty much like the original, that just sets blank fields.
Paul 🙂