move scripts to end of page on each page, charts are now ok