serve page specific scripts appropriately