access to JS object fields as ruby members