Improved window.navigator.userAgent

Now it includes the device name and the os version number.