utils.js: Fixed failing test causing a Javascript error
win_rate_graph.js: Fix index variable name error