Create test.js

Committed the javascript file for form validation