Quick and dirt Elo algorithm implementation in JS.