Switched service.js back to prototype methodology but with scoped variables