Added basic set up for api.js, added some API requests