Updated the CommentRepository to support async. Fixed some bugs in the comments.js