CNAME and bug fix in js