changing cdn resources to local resources