fixed map-reduce, added storage, adde momentjs