using $.extend instead lodash