try removing the trailing `, null` arg here?

http://api.jquery.com/jQuery.extend/