Bug fix: extend was operating the opposite way of jQuery's extend