Corrected service.js by declaring the http library within the scope of the call() method so that the variables within the http events are not shared across different instances of service