Clean up app.js: rename the single-letter variables to descriptive names and add proper spacing. The logic is correct, just needs better readability.
