utilizing jquery's extend function