Stats page JavaScript is now working again.
Changed AJAX loading to jQuery.