Do not insert files from `$GLOBALS['TL_JAVASCRIPT']` twice (see #6920)