added service jquery functions and put them in a seperate file