Create js-reduce-implement.js

A implement of js reduce function.