analysis2.js seems to work properly.