fix browser version validation code for firefox