again trying to sort callback in angular but to no avail
rewrite using ruby net/http
merging rewrite