Fix deprecation warnings.

Fix the place that causes warnings like
[DEPRECATED] This method (browsers=) is deprecated, please use the []
and []= accessors instead.
Merge pull request #121 from patdeegan/deprecated-methods

Fix deprecation warnings.