I would like to suggest adding to_b and to_h to JS::Object, to convert into a ruby boolean respective hash.
to_b → boolean
Converts self to true or false:
JS.eval("return true").to_b # => true
JS.eval("return false").to_b # => false
to_h → hash
Converts self to a Hash:
JS.eval("return {foo: 'bar'}").to_h # => { "foo" => "bar" }