Consolidate java script loading to single page.