Update service.js

fixed toString error