switched jquery extend to angular extend