Completed the ajax commenting functionality