update to latest analysis.js API