Replaced array.join('') to string += concat.

array.join is slower than += in modern javascript engines including V8.

See [SO question - Why is string concatenation faster than array join?](http://stackoverflow.com/questions/7299010/why-is-string-concatenation-faster-than-array-join)