add angular-resource to application.js