function _initCommentAndCloseButton(){
            var commentForm = $("#comment-form");
            var dynamicCommentBtn = $("#dynamic-comment-btn");
            var withStateTransitionInput = $("<input type='hidden' name='withStateTransition'>");

            commentForm.prepend(withStateTransitionInput);

            dynamicCommentBtn.removeClass("hidden");
            dynamicCommentBtn.html(Messages("button.nextState." + vars.nextState));
            dynamicCommentBtn.on("click", function(){
                if(elements.textarea.val().length > 0){
                    withStateTransitionInput.val("true");
                    commentForm.submit();
                } else {
                    withStateTransitionInput.val("");
                    location.href = vars.urls.nextState;
                }
            });

            elements.textarea.on("keyup", function(){
                if(elements.textarea.val().length > 0){
                    dynamicCommentBtn.html(Messages("button.commentAndNextState." + vars.nextState));
                } else {
                    dynamicCommentBtn.html(Messages("button.nextState." + vars.nextState));
                }
            });

            // if yobi.ShortcutKey exists
            if(yobi.ShortcutKey){
                yobi.ShortcutKey.attach("CTRL+SHIFT+ENTER", function(htInfo){
                    if(htInfo.welTarget.is(elements.textarea)){
                        dynamicCommentBtn.click();
                    }
                });
            }
        }
Add "comment & close" like button at comment form

@private