Calling Rest Services by the help of Ajax