Add comment support for Jack mode

Add comment helper as suggested in https://github.com/ajaxorg/ace/pull/1636#discussion_r6693402