using onscroll to load charts
added code to load charts depending on scroll
charts load based on scroll