Update detect.js

Add Windows to the list of Safari tests to ensure recognition in Windows.
No need to shorten `platform` into `plat` variable name. The minification process will shorten variable names.