Support for jQuery<1.7 and Chrome