Fixed browser detection script bug