Update api.js

added the node twitter api integration