update js file validation