Added support for Windows 8.1
Moved the detection of the OS for IE and Opera into separate functions.
Removed useless entries in the normalizeOS function.