How to use $.extend();
http://www.jquery4u.com/function-demos/extend/