load js files for each page only

support have js files on each page, but only the ones needed by that specific page.

Been asked for numerous times in the past couple years ... still waiting :/