removed dependency on nodejs example, implemented httpBackend to mock requests