Using nodejs with API