js analyse file