wrong third argument for jQuery.extend