Getty JavaScript Class
Browser Detection
You've already done it
Check for objects, not versions