Use jQuerys extend instead of own implemented function