add ajax to weather service
refactoring rest