$.extend: replace target with tmpTarget and return the desired target after merge