added ngResource
added jquery
mapped user as $resource