Update projects-service.js

making the code even simpler