A jquery substitute for modern browsers