Base for infinityloader jquery plugin