improve utils.js code quality
DRY privmsg.js, notice.js, fix nickserv in index.js