take list of scripts out of page template
load each script once only
move stylesheet list out of page template