stubbing jQuery extend with a simpler implementation