[js] array: call 'join' method on casting to string
[js] array: cast to string on array addition
[js] array: add test cases for array addition and string casting
[js] whitespace removal
[coding] convert tabs to spaces.