setting up services js