Exposed threads.incViewCount in index.js

Exposed the incViewCount method in the index.js file for Threads. This
allows us to increment the view count of a particular thread.