refactoring browser check function
update test.html