revised services JS