Version 1.5.3

List.fancyscroll = new FancyScroll( List.input, {infiniteUrl: List.url, infiniteData: List.params, infiniteStop: {up: 0, down: List.total}, infiniteStart: session.get('offset')} );

    List.input.on('scroll', function() {
        var scrolled = parseInt( List.input.scrollTop() / List.input.find( '.list-row' ).first().height() ) || 0;
        session.set('offset', scrolled);
    });

    List.fancyscroll.convert = function( data ) {
        "use strict";
        var list = [];
        $.each( $( data ), function(i) {
            if ( this.nodeName.toString() != '#text' && $( this ).attr( 'id' ) != 'list-content-total' ) {
                list.push( this )
            }
            if ( $( this ).attr( 'id' ) == 'list-content-total' ) {
                List.total = parseInt( $( this ).text() );
                List.fancyscroll.options.infiniteStop.down = List.total;
                $( this ).remove();
                $( '#list-head-total' ).find( 'span' ).html( List.total );
            }

        } );
        return list;
    };