Support passing array from Ruby side to JS side