This new approach makes sure the input field is hidden on browsers which ignore `display:none`, such as w3m or lynx.
These changes make the code more efficient, since going trough an array with `forEach` is faster than iterating with a foor loop on every input change. Using `indexOf()` instead of `includes()` is faster as well.