ajax requests and pagination, no sprites, various tries at endless scroll

something's up with the index.js.erb page; I'm using it to ajaxify my kaminari pagination, and it seems I can't also use it for endless scroll--possibly because there's no division but I'm jquery selecting #pagination attribute twice?