Fixed Chrome and Firefox detection in Windows 7/8
Converted switch statement to string.equals (ugly, but unfortunately correct)