jQuery plugin for reduce function.