Rename app.js to api.js