A litte bit of help needed with writing a pluging

A litte bit of help needed with writing a pluging

Hi There,

For a blog a like tool. i've written a small plugin which retrieves comments on this "blog"

The comments are retrieved by json and formatted with some js and appended to the comments div. So far it al goes fine.
However i also need pagination in this.
Default selectors won't work ( $("#navbar a").click(function()) etc..
This ( in my honest opinion ) because the div with selector navbar is created with javascript.

What is the correct way to implement this plugin?
My best guess is something like
loading comments:
$("#comments").loadComments({blog_id:blog_id}); // this is what i already have

Pagination:
$("#navbar").loadPagination({blog_id:blog_id});

Is something like below better ( and if so how is this handled in the jQuery-js-plugin )
$("#comments").comments({blog_id:blog_id}).loadComments();
$("#navbar").comments({blog_id:blog_id}).loadPagination();

Thanks in advance