added the equivalent of app.js (first commit)