add cdn option to js and css substitute