Add basic polyfill for validity.valid
Convert tabs to spaces