js validate folder