enable requesting multiple stats in one go, separate javascript to js file