Porting the Hulu API client written in PHP to Node.JS