Reworked API.
Reworked app.js to work with the new API