Shadow DOM components doesn't load scripts which are outside them, so we need to add a logic to include global scripts in a component.