adds cdn_url method for JS