General solution for FOSCommentBundle js.