updated the js file of file validation js