Add missing important statements that caused JavaScript to crash on several pages.
important
fixes https://gitlab.com/gitlab-org/gitlab-ee/issues/3268