Respect MainScript property of the theme.