class ActionView::Helpers::JavaScriptElementProxy

def [](attribute)

page['foo']['style'].color = 'red' # => $('blank_slate').style.color = 'red';
page['foo']['style']['color'] = 'red' # => $('blank_slate').style.color = 'red';
page['foo']['style']['color'] # => $('blank_slate').style.color;
page['foo']['style'] # => $('foo').style;

Allows access of element attributes through +attribute+. Examples:
def [](attribute)
  append_to_function_chain!(attribute)
  self
end