remove unused `@pattern` attribute
use DOM to get numbers from input fields

- replace `parseInt()` with `.valueAsNumber` DOM method