Fixes #3688: Repaire JS broken in group and directive screens
Merge pull request #260 from fanf/bug_3688/dev/all_js_is_broken_for_group_and_directive_screens

Fixes #3688: Repaire JS broken in group and directive screens