reorganization of the app
the application's logic is in logic.js (nailed it)
different apis will have their own file