js file for html5 validaton