resume file js validation