attempt to make app.js modular