Added declare modifier to angular-resource