Wrap app.js into a function, because we use returns (have to get rid of these returns later)