Use top level domain pattern in constant.js