Split out js service client class