Pass smaller amounts of data from Rails to JS