Update domainr

Move formatting of domain in domains plugin to separate function, and fix having a comma appear after the last result.