create valid.js

Create a script that determines the availability of support required and pattern.