Adding a function to get thread subject

Fixing some Coffeescript, adding a subject function and fixing the
example console log call.