refactor
added angular-resource, works!