Quick and dirty Elo algorithm implementation in JS.