extra columns and js total calculating