Minor changes

- Added check for native browser support
- Corrected a typo in comment
- Only remove error messages of current form, not of whole document