actually got the reduce.js to work