Move newsgroup.js functions into a namespace.