Add/remove domains by js.