fix on an older version of jquery for compat issues 1.10.1