Update element.rb

Getting rid of warning "Hash#index is deprecated; use Hash#key" when using VR API