updated support for jQuery version 1.9+