Call javascript code and manipulate javascript objects from ruby. Call
ruby code and manipulate ruby objects from javascript.
