utils.js: Fixed failing test causing a Javascript error
win_rate_graph.js: Fix index variable name error
Merge pull request #47 from bricef/master

Fixes Javascript exceptions