Stats: Fix indexing and browser compatibility.

Fixed indexing for drawing the stats (now draws the entire graph, not just a
fragment) in the admin bar and switched array functions to jQuery array
functions and function application for backwards compatibility.