Pass Thread::userId field to the users JS application