simple javascript pager.