replaces jquery extend with custom clone