access to JS object fields from ruby