run metrics
various JS fixes
php fixes