Oltre a quanto consigliato da Vindav
Io modificherei anche il tasto da reset a button <input value="Cancella" type="button" onClick="init()">