make external js/css resources http/https agnostic