Use custom merge() instead of jQuery's extend()