adding OS detection as a jQuery utility function