complete comment operation by js