var scoping in cdn components