Implementing CouchDB view/reduce function for article_index