- ->addScriptFile('civicrm', 'js/crm.livePage.js')
- ->addScriptFile('civicrm', 'templates/CRM/Case/Form/CaseView.js');
+ ->addScriptFile('civicrm', 'js/crm.livePage.js', 1, 'html-header')
+ ->addScriptFile('civicrm', 'templates/CRM/Case/Form/CaseView.js', 2, 'html-header');