moved sparkline functions to site.js