correct js total (again)