restangular putElement usage