add CDN method for js files