This may not be the answer you are looking for, but perhaps you better not check your browser versions, check for supported features instead. Otherwise, you can exclude browsers that do not support a specific function now, but may do so in the future.
jQuery.support?