- alter patient portal js files so only required js files are included per page.