split app.js to its constituent modules