Update services.js

Bug fix for issue #3