Corrected the CommentsController return type fixing crashes with ajax requests to it failing to parse the response. Additionally, fixed a conditional check on deleting comments that broke the api