Fixing warning - updated browser.rb

Fixing the warning on ruby 2.0.0 for Enumerator.new by changing it to to_enum which is Ruby Style