Move JavaScript import at end of the body tag
Generate charts on-demand, instead of generating all charts at load time.