Edit comment js for ajax submission