Node module to calculate Elo rating