Browser detect code for Mac OS

Works for 3 major Mac browsers, haven’t implemented Opera or IE yet, or
tested recognition of Windows OS