JS: updating scores