Node Js REST client for gumball machine