How to call Rest API from javascript



I have authorised user and having oauth access token of user.
I am trying to call twitter rest API using javascript. But did not found a way to call rest api.

Is there anyone knows how to call twitter Rest API from javascript for retweet/profile information/favorite API?


This series is a good introduction: