fix($resource) instance calls extend original resource object
update example