analyze.js analyzes files