updated old post to defer loading of google charting API