Array To String Javascript Reduce Function