Removed redundant code from on_browser_change function.