Fixed wrong jQuery.extend replacment