migrating gasm.rent.js methods to services.js (Angular service)