Fix typo in scales.js

@jebeck Tell me if I'm wrong, but I think `d3.extent` returns an array and you want to compare the max (2nd element)?