Firefox is clearing the form when pressing "cancel" on the "reset"(s) "confirm" window. Tried that:
<input class="grow" type="reset" name="reset" id="res" onclick="confirm('reset?')">
And that:
$('#res').on('click',function(){
var c = confirm('Reset the data?');
if(c==true){
$( ".counter" ).text( q + " of " + n.length );
}
});
Both work properly in Chrome and Safari.