JS: updating analytics training table