restored last Xotic caap_autostat.js for further investigation and fix