Added variable and validating for loading from CDN