refactor(form example): html & dart cleanup

Closes #1373