Credit for work on the reduce jQuery issues