Add js func to get queue position and add check before rendering comment...

I'm not sure that this is a good solution to the problem so someone should verify that. I added a new js function to get the queue position, and a null check before adding the comment form. This might make inQueue redundant, so if this solution is good maybe that should be replaced by the new function.