New API.js

New api.js file to test API integration.